package com.rp.system.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.rp.common.vo.PageData;
import com.rp.controller.RpController;
import com.rp.system.service.SysLogService;

@Controller
@RequestMapping("/rp/system/sysLogMng/")
public class SysLogController extends RpController {

	@Autowired
	private SysLogService sysLogService;
	
	@ResponseBody
	@RequestMapping("getSysLogByPage")
	public PageData getSysLogByPage(String description, String operResult, String methodName, String createDate){
		return new PageData(sysLogService.getSysLogDao().getSysLogByPage(pageParam, description, operResult, methodName, createDate));
	}
	
	@ResponseBody
	@RequestMapping("removeAll")
	public String removeAll(){
		sysLogService.removeAll();
		return SUCCESS;
	}
	
}
